<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'unit-project-end-form',
	'enableAjaxValidation'=>false,
	'htmlOptions' => array('enctype' => 'multipart/form-data'),
)); ?>

	<?php echo $form->errorSummary($model); ?>
	
	<?php echo $form->textFieldRow($model,'appearance_score_got',array('class'=>'span2','maxlength'=>15)); ?>
	
	<?php echo $form->textFieldRow($model,'appearance_score_total',array('class'=>'span2','maxlength'=>15)); ?>
	
	<?php 
		echo $form->fileFieldRow($model,'tempFile',array('class'=>'span5','maxlength'=>255));		
		if(!$model->quality_file == '') {
			echo '	<div class="row-fluid"><div class="span5"><div class="alert alert-info">' . Yii::t('project','This unit proejct quality file is:') . 
			CHtml::link($model->quality_file , Yii::app()->baseUrl . '/files/' . 
							$model->project->id . '/' .
							$model->id .
							'/' . $model->quality_file) . '</div></div></div>';
		}
	?>

	<div class="form-actions">
		<?php 
			$this->widget('bootstrap.widgets.TbButton', array(
					'buttonType'=>'link',
					'type'=>'link',
					'url'=>array('unitProject/status', 'id'=>$model->id),
					'label'=>Yii::t('common','Cancel'),
				)); 
		?>
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? Yii::t('common','Create') : Yii::t('common','Save and Finish'),
		)); ?>
	</div>

<?php $this->endWidget(); ?>